亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖

                        PC-FXGA僆乕僒儕儞僌僜僼僩僂僃傾
                    亀俧俵俙俲俤俼亁僗僞乕僞僉僢僩(Ver.1.1)
                               僔僗僥儉峔惉偺夝愢

                                        擔杮揹婥儂乕儉僄儗僋僩儘僯僋僗姅幃夛幮
                                                        侾俋俋俇擭侽俆寧俁侽擔

亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖

栚師

戞侾復  偼偠傔偵
侾丏侾  僔僗僥儉峔惉

戞俀復  張棟偺棳傟
俀丏侾  傾僙儞僽儕尵岅偵傛傞奐敪 仏
俀丏俀  俠尵岅丄傾僙儞僽儕尵岅偵傛傞奐敪 仏
俀丏俁  俠尵岅偵傛傞奐敪

戞俁復  幚嵺偺奐敪庤弴
俁丏侾  儌僨儖僨乕僞偺嶌惉
俁丏俀  僾儘僌儔儉椺

戞係復  拲堄帠崁
係丏侾  奐敪忋偺拲堄


亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖
戞侾復  偼偠傔偵

PC-FXGA僆乕僒儕儞僌僜僼僩僂僃傾乽俧俵俙俲俤俼乿僗僞乕僞僉僢僩乮埲壓丄乭乽俧俵
俙俲俤俼乿僗僞乕僞僉僢僩乭偲棯偟傑偡丅乯偼丄俹俠亅俥倃俧俙忋偱摦嶌偡傞僜僼僩
僂僃傾傪嶌惉偡傞堊偺丄堦楢偺僜僼僩僂僃傾僣乕儖偱偡丅


仠傾僙儞僽儕尵岅仏丄俠尵岅偵傛傞奐敪

偙偺乽俧俵俙俲俤俼乿僗僞乕僞僉僢僩傪巊偆偙偲偵傛偭偰丄傾僙儞僽儕尵岅仏偁傞偄
偼俠尵岅偵傛傞僜僼僩僂僃傾偺奐敪傪峴偆偙偲偑偱偒傑偡丅

傾僙儞僽儕尵岅偼傾僙儞僽儔仏傪丄俠尵岅偼俠僐儞僷僀儔傪巊梡偟偰僆僽僕僃僋僩僼傽
僀儖傪嶌惉偟丄偦傟傜傪儕儞僇偵傛傝侾偮偵傑偲傔丄幚峴宍幃偺僾儘僌儔儉偵偟偨傕
偺偑丄俹俠亅俥倃俧俙忋偱摦嶌偟傑偡丅

崅懍側張棟偑朷傑傟傞晹暘傗丄僴乕僪偵捈愙娭傢傞傛偆側晹暘偼傾僙儞僽儕尵岅仏偱
嶌惉偟丄偦偺懠偺晹暘偼丄婰弎偑傾僙儞僽儕尵岅傛傝傕梕堈偱丄廮擃側峔憿傪帩偮俠
尵岅偱嶌惉偡傞偙偲偵傛傝丄岠棪偺椙偄奐敪傪峴側偆偙偲偑偱偒傑偡丅


仠岠棪偺椙偄僨僶僢僌嶌嬈

偙偺乽俧俵俙俲俤俼乿僗僞乕僞僉僢僩偵偼丄嶌惉偟偨幚峴宍幃偺僾儘僌儔儉傪儅僔儞
岅偍傛傃傾僙儞僽儕尵岅仏丄俠尵岅偺僜乕僗僐乕僪儗儀儖偱僨僶僢僌偱偒傞僜乕僗僐
乕僪僨僶僢僈偑梡堄偝傟偰偄傑偡丅

僜乕僗僐乕僪僨僶僢僇偵傛傝丄僽儗僀僋億僀儞僩偺愝掕傗丄僗僥僢僾丄僩儗乕僗摍偺
柦椷偵傛傞丄幚峴僾儘僌儔儉偺摦嶌傪妋擣偡傞偙偲偑壜擻偱偡丅傑偨俠尵岅偱愰尵偝
傟偨曄悢偺嶲徠傗丄幃昡壙側偳俠尵岅儗儀儖偱偺僨僶僢僌嶌嬈傕梕堈偵偟傑偡丅


仭侾丏侾  僔僗僥儉峔惉
                亄亅亄
      亄亅亅亅亄乥  乥
      乥      乥乥  乥        亄亅亄 PC-FXGA
      乥      乥乥  亄亅亅亅亅亄  亄亅亅亅亅亅亅亅仺僥儗價
      亄亅亅亅亄亄亅亄        亄亅亄
   僷乕僜僫儖僐儞僺儏乕僞

亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖

戞俀復  張棟偺棳傟

仭俀丏侾  傾僙儞僽儕尵岅偵傛傞奐敪 仏

  亄亅亅亅亅亅亅亅亅亅亄
  乥  傾僙儞僽儕尵岅  乥
  乥 僜乕僗僾儘僌儔儉 乥
  亄亅亅亅亅亅亅亅亅亅亄
            伀                  亄亅亅亅亅亅亅亅亅亅亄
  亄亅亅亅亅亅亅亅亅亅亄        乥  俤倃僼傽僀儖    乥
  乥    俥倃俙俽      乥  亄亅仺乥乮昗弨幚峴宍幃乯  乥
  乥   傾僙儞僽儔     乥  乥    亄亅亅亅亅亅亅亅亅亅亄
  亄亅亅亅亅亅亅亅亅亅亄  乥    亄亅亅亅亅亅亅亅亅亅亄
            伀            亄亅仺乥  俵倃僼傽僀儖    乥 -M [僼傽僀儖柤]
  亄亅亅亅亅亅亅亅亅亅亄  乥    乥乮儌僩儘乕儔宍幃  乥 -P [傾僪儗僗]
  乥   僆僽僕僃僋僩   乥  乥    亄亅亅亅亅亅亅亅亅亅亄
  乥     僼傽僀儖     乥  乥    亄亅亅亅亅亅亅亅亅亅亄
  乥    _startup.o    乥  亄亅仺乥  俛倃僼傽僀儖    乥 -b [僼傽僀儖柤]
  乥    儔僀僽儔儕    乥  乥    乥 乮僶僀僫儕宍幃乯 乥
  亄亅亅亅亅亅亅亅亅亅亄  乥    亄亅亅亅亅亅亅亅亅亅亄
            伀            乥    亄亅亅亅亅亅亅亅亅亅亄
  亄亅亅亅亅亅亅亅亅亅亄  亄亅仺乥  俛俬俶僼傽僀儖  乥 -B [僼傽僀儖柤]
  乥    俥倃俴俲      亄亅亄    乥 乮僶僀僫儕宍幃乯 乥
  乥     儕儞僇       乥  乥    亄亅亅亅亅亅亅亅亅亅亄
  亄亅亅亅亅亅亅亅亅亅亄  乥    亄亅亅亅亅亅亅亅亅亅亄
            伀            亄亅仺乥  俫俤倃僼傽僀儖  乥 -H [僼傽僀儖柤]
  亄亅亅亅亅亅亅亅亅亅亄  乥    乥 乮僀儞僥儖宍幃乯 乥
  乥    幚峴宍幃      乥  乥    亄亅亅亅亅亅亅亅亅亅亄
  乥   僾儘僌儔儉     乥  乥    亄亅亅亅亅亅亅亅亅亅亄
  亄亅亅亅亅亅亅亅亅亅亄  亄亅仺乥  儅僢僾僼傽僀儖  乥 -m [僼傽僀儖柤]
            伀            乥    乥                  乥
  亄亅亅亅亅亅亅亅亅亅亄  乥    亄亅亅亅亅亅亅亅亅亅亄
  乥     俥倃俢俛     乥  乥    亄亅亅亅亅亅亅亅亅亅亄
  乥   僜乕僗僐乕僪   乥  亄亅仺乥 僔儞儃儖僼傽僀儖 乥 -y [僼傽僀儖柤]
  乥     僨僶僢僈     乥        乥                  乥
  亄亅亅亅亅亅亅亅亅亅亄        亄亅亅亅亅亅亅亅亅亅亄

丒BX僼傽僀儖丄MX僼傽僀儖丄BIN僼傽僀儖丄HEX僼傽僀儖偵偮偄偰偼丄巜掕偺側偄尷傝弌
  椡偝傟傑偣傫丅
丒僗僀僢僠摍偺徻嵶偼FXLK.TXT("FXLK.EXE"偺夝愢)傪嶲徠偟偰偔偩偝偄丅


仭俀丏俀  俠尵岅丄傾僙儞僽儕尵岅偵傛傞奐敪 仏

  亄亅亅亅亅亅亅亅亅亅亄
  乥  傾僙儞僽儕尵岅  乥        亄亅亅亅亅亅亅亅亅亅亄
  乥 僜乕僗僾儘僌儔儉 乥        乥     俠尵岅       乥
  亄亅亅亅亅亅亅亅亅亅亄        乥 僜乕僗僾儘僌儔儉 乥
            伀                  亄亅亅亅亅亅亅亅亅亅亄
  亄亅亅亅亅亅亅亅亅亅亄                  伀
  乥    俥倃俙俽      乥        亄亅亅亅亅亅亅亅亅亅亄
  乥   傾僙儞僽儔     乥        乥     俥倃俠俠     乥
  亄亅亅亅亅亅亅亅亅亅亄        乥   俠僐儞僷僀儔   乥
            伀                  亄亅亅亅亅亅亅亅亅亅亄
  亄亅亅亅亅亅亅亅亅亅亄                  伀
  乥   僆僽僕僃僋僩   乥        亄亅亅亅亅亅亅亅亅亅亄
  乥     僼傽僀儖     乥        乥     俥倃俙俽     乥
  乥    _startup.o    乥        乥   傾僙儞僽儔     乥
  乥    儔僀僽儔儕    乥        亄亅亅亅亅亅亅亅亅亅亄
  亄亅亅亅亅亄亅亅亅亅亄
            乥                  亄亅亅亅亅亅亅亅亅亅亄
            乥            亄亅仺乥  俤倃僼傽僀儖    乥
            乥            乥    乥 乮昗弨幚峴宍幃乯 乥
            乥            乥    亄亅亅亅亅亅亅亅亅亅亄
            伀            乥    亄亅亅亅亅亅亅亅亅亅亄
  亄亅亅亅亅亅亅亅亅亅亄  亄亅仺乥  俵倃僼傽僀儖    乥
  乥    俥倃俴俲      亄亅亄    乥乮儌僩儘乕儔宍幃乯乥
  乥     儕儞僇       乥  乥    亄亅亅亅亅亅亅亅亅亅亄
  亄亅亅亅亅亅亅亅亅亅亄  乥    亄亅亅亅亅亅亅亅亅亅亄
            伀            亄亅仺乥  俛倃僼傽僀儖    乥
  亄亅亅亅亅亅亅亅亅亅亄  乥    乥 乮僶僀僫儕宍幃乯 乥
  乥    幚峴宍幃      乥  乥    亄亅亅亅亅亅亅亅亅亅亄
  乥   僾儘僌儔儉     乥  乥    亄亅亅亅亅亅亅亅亅亅亄
  亄亅亅亅亅亅亅亅亅亅亄  亄亅仺乥  俛俬俶僼傽僀儖  乥
            伀            乥    乥 乮僶僀僫儕宍幃乯 乥
  亄亅亅亅亅亅亅亅亅亅亄  乥    亄亅亅亅亅亅亅亅亅亅亄
  乥     俥倃俢俛     乥  乥    亄亅亅亅亅亅亅亅亅亅亄
  乥   僜乕僗僐乕僪   乥  亄亅仺乥 俫俤倃僼傽僀儖   乥
  乥     僨僶僢僈     乥        乥 乮僀儞僥儖宍幃乯 乥
  亄亅亅亅亅亅亅亅亅亅亄        亄亅亅亅亅亅亅亅亅亅亄


丒BX僼傽僀儖丄MX僼傽僀儖丄BIN僼傽僀儖丄HEX僼傽僀儖偵偮偄偰偼丄巜掕偺側偄尷傝弌
  椡偝傟傑偣傫丅
丒僗僀僢僠摍偺徻嵶偼FXLK.TXT("FXLK.EXE"偺夝愢)傪嶲徠偟偰偔偩偝偄丅


仭俀丏俁  俠尵岅偵傛傞奐敪

  亄亅亅亅亅亅亅亅亅亅亄
  乥     俠尵岅       乥
  乥 僜乕僗僾儘僌儔儉 乥
  亄亅亅亅亅亅亅亅亅亅亄
            伀
  亄亅亅亅亅亅亅亅亅亅亄
  乥     俥倃俠俠     乥
  乥   俠僐儞僷僀儔   乥
  亄亅亅亅亅亅亅亅亅亅亄
            伀
  亄亅亅亅亅亅亅亅亅亅亄
  乥     俥倃俙俽     乥
  乥   傾僙儞僽儔     乥
  亄亅亅亅亅亅亅亅亅亅亄
            伀
  亄亅亅亅亅亅亅亅亅亅亄
  乥   僆僽僕僃僋僩   乥
  乥     僼傽僀儖     乥        亄亅亅亅亅亅亅亅亅亅亄
  乥    _startup.o    乥  亄亅仺乥  俤倃僼傽僀儖    乥
  乥    儔僀僽儔儕    乥  乥    乥 乮昗弨幚峴宍幃乯 乥
  亄亅亅亅亅亅亅亅亅亅亄  乥    亄亅亅亅亅亅亅亅亅亅亄
            伀            乥    亄亅亅亅亅亅亅亅亅亅亄
  亄亅亅亅亅亅亅亅亅亅亄  亄亅仺乥  俵倃僼傽僀儖    乥
  乥    俥倃俴俲      亄亅亄    乥乮儌僩儘乕儔宍幃乯乥
  乥     儕儞僇       乥  乥    亄亅亅亅亅亅亅亅亅亅亄
  亄亅亅亅亅亅亅亅亅亅亄  乥    亄亅亅亅亅亅亅亅亅亅亄
            伀            亄亅仺乥  俛倃僼傽僀儖    乥
  亄亅亅亅亅亅亅亅亅亅亄  乥    乥 乮僶僀僫儕宍幃乯 乥
  乥    幚峴宍幃      乥  乥    亄亅亅亅亅亅亅亅亅亅亄
  乥   僾儘僌儔儉     乥  乥    亄亅亅亅亅亅亅亅亅亅亄
  亄亅亅亅亅亅亅亅亅亅亄  亄亅仺乥  俛俬俶僼傽僀儖  乥
            伀            乥    乥 乮僶僀僫儕宍幃乯 乥
  亄亅亅亅亅亅亅亅亅亅亄  乥    亄亅亅亅亅亅亅亅亅亅亄
  乥     俥倃俢俛     乥  乥    亄亅亅亅亅亅亅亅亅亅亄
  乥   僜乕僗僐乕僪   乥  亄亅仺乥 俫俤倃僼傽僀儖   乥
  乥     僨僶僢僈     乥        乥 乮僀儞僥儖宍幃乯 乥
  亄亅亅亅亅亅亅亅亅亅亄        亄亅亅亅亅亅亅亅亅亅亄


丒BX僼傽僀儖丄MX僼傽僀儖丄BIN僼傽僀儖丄HEX僼傽僀儖偵偮偄偰偼丄巜掕偺側偄尷傝弌
  椡偝傟傑偣傫丅
丒僗僀僢僠摍偺徻嵶偼FXLK.TXT("FXLK.EXE"偺夝愢)傪嶲徠偟偰偔偩偝偄丅

亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖

戞俁復  幚嵺偺奐敪庤弴

偙偙偱偼丄PC-FXGA偵摨崼偟偰偄傑偡"傾儅僠儏傾採嫙CD-ROM"偺DoGAGENIE-1偱儌僨儖
僨乕僞傪嶌惉偟丄偦偺儌僨儖僨乕僞傪夋柺偵昞帵偡傞庤弴傪徯夘偟偰偄傑偡丅

仭俁丏侾  儌僨儖僨乕僞偺嶌惉椺

	     亄亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亄
	     乥            DoGAGENIE-1             乥
	     乥 亄亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亄 乥
	     乥 乥僷乕僣傾僙儞僽儔偱儌僨儖傪嶌惉乥 乥
	     乥 亄亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亄 乥
	     乥                 伀                 乥
	     乥亄亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亄乥
	     乥乥AGD僐儞僶乕僞偱AGD僼傽僀儖傪嶌惉乥乥
	     乥亄亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亄乥
	     亄亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亅亄
	                        伀
	         亄亅亅亅亅亅亅亅亅亅亅亅亅亅亅亄
	         乥AGDL2S偱 AGD僼傽僀儖傪嵟揔壔乥仸昁梫偵墳偠偰
	         亄亅亅亅亅亅亅亅亅亅亅亅亅亅亅亄
	                        伀
	          亄亅亅亅亅亅亅亅亅亅亅亅亅亅亄
	          乥AGD2AGC偱AGC僼傽僀儖傪嶌惉乥
	          亄亅亅亅亅亅亅亅亅亅亅亅亅亅亄

  DoGAGENIE-1 偺僷乕僣傾僙儞僽儔偱嶌惉偟偨儌僨儖傪 AGD 僐儞僶乕僞偱 AGD 僼傽
  僀儖偵曄姺偟丄\FXGA\BIN\(僨僼僅儖僩偱僀儞僗僩乕儖偟偨応崌)偵廂榐偝傟偰偄傞
  AGDL2S.EXE, AGD2AGC.EXE 傪巊梡偟偰 AGC 僼傽僀儖傊曄姺偡傞偙偲偵傛偭偰丄儔
  僀僽儔儕偵傛傞儌僨儕儞僌僨乕僞偺昞帵偑壜擻偵側傝傑偡丅


仭俁丏俀  僾儘僌儔儉椺

  俁丏侾偱嶌惉偟偨 AGC 僼傽僀儖傪 MODEL.AGC 偲偄偆柤慜偱巊偆椺傪帵偟傑偡丅

- main.c -
#include <system.h>
#include <v93.h>
#include <nt.h>
#include <farl.h>
#include <agl.h>

#define PALDATSIZ (512)

#asm
	seg	dseg
palette_data::
;;; DoGAGENIE-1 愱梡僷儗僢僩僨乕僞
	binload "genie.acd",104
	align 4
model_data_length::
	binload	"model.agc",0,4
	align	4
model_data::
	binload	"model.agc",4
#endasm
extern unsigned short palette_data[];
extern long model_data_length;
extern int model_data[];

void
main(void)
{
  object obj;
  Material material;
  int angle = 0;

  /* Hu6261 夋柺儌乕僪愝掕 */
  init_nt();
  set_nt_mode(line263);
  {
    struct NT_PLO plo;

    plo.cpo0 = 0x8000;		/* 屌掕 */
    plo.cpo1 = plo.cpo2 = plo.cpo3 = 0x0000;
    set_pallet_offset(&plo);
  }
  /* 僇儔乕僷儗僢僩偺揮憲 */
  write_pallet_datas(0, palette_data, PALDATSIZ);

  /* HuC6273 愝掕丅晛抜偼曄峏偟側偄偱偔偩偝偄 */
  AGLInit();
  FarlSetWindowScaleReg(128 * 2, 128, -128 * 2, 128);
  FarlSetPEICMaskReg(FARL_ICMASK_I5C4);
  FarlSetTEControlReg(FARL_TE_ICM | FARL_TE_LTEN | FARL_TE_SPEN | FARL_TE_BCE);
  FarlValidateSwap();
  dispon(bg | spr);

  /* 儌僨儖僨乕僞偺搊榐 */
  obj.geometryTop = model_data;
  obj.geometryLength = (model_data_length + sizeof(int) - 1) / sizeof(int);

  /* 儅僥儕傾儖偺愝掕 */
  material.ambient  = 0x1000;
  material.diffuse  = 0x6FFF;
  material.specular = 0x7FFF;
  obj.material = &material;
  AGLSetMaterial(&material, 1);

  /* 儔僀僩愝掕 */
  AGLResetLight(AGL_LIGHT0);
  AGLResetLight(AGL_LIGHT1);
  AGLSetLight(AGL_LIGHT0, 0xf000, 0xf000, 0x0200, 0x7FFF);
  AGLRotateLightY(AGL_LIGHT0, 700);
  AGLRotateLightZ(AGL_LIGHT0, 3300);

  while (1) {
    AGLResetCamera();

    AGLTranslateCamera(0, -0x80, 0); 
    AGLRotateCameraX(900);
    AGLPerspectiveCamera(0xffc0);
    AGLZoomCamera(0x80, 0x80, 0x80);

    AGLResetObj(&obj);
    AGLScaleObj(&obj, 0x80, 0x80, 0x80);
    AGLRotateObjX(&obj, 900);
    AGLRotateObjZ(&obj, angle);
    AGLTranslateObj(&obj, 0, 0, 0);
    AGLFixPutObj(&obj);
    AGLShot();

    angle += 10;
    angle %= 3600;
  }
}
----------

  偙傟傪僐儞僷僀儖偟偰儕儞僋偟傑偡丅

fxcc -O2 -I\fxga\include -c main.c
fxlk @ind

  僀儞僟僀儗僋僩僼傽僀儖 ind 偺撪梕偼埲壓偺偲偍傝偱偡丅

- ind -
/cseg:8000 -o sample.ex 
\fxga\lib\_startup.o 
main.o 
\fxga\lib\libagl.a \fxga\lib\vlib.a \fxga\lib\libfarl.a
\fxga\lib\_stack.o 
-------

  幚峴偼師偺傛偆偵峴偄傑偡丅徻嵶偼FXDB.TXT("FXDB.EXE"偺夝愢)傪嶲徠偟偰偔偩偝
  偄丅

fxdb ysample;rg

亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖

戞係復  拲堄帠崁

仭係丏侾  奐敪忋偺拲堄

乽俧俵俙俲俤俼乿僗僞乕僞僉僢僩偱偼丄幚峴帪弶婜壔偺偨傔偵_STARTUP.O偲_STACK.O偑
梡堄偝傟偰偄傑偡丅昁偢_STARTUP.O偲_STACK.O傪儕儞僋偡傞傛偆偵偟偰壓偝偄丅


仏乧乧傾僙儞僽儔傪棙梡偡傞嵺丄巊梡偡傞傕偺偱偡丅
  彯丄乽俧俵俙俲俤俼乿僗僞乕僞僉僢僩偱偼傾僙儞僽儔偼僒億乕僩偝傟偰偍傝傑偣傫丅

亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖亖

                                                           (C)1995 HUDSON SOFT
